///////////////////////////////////////////////////////////
//  BackTemplateCommand.cpp
//  Implementation of the Class BackTemplateCommand
//  Created on:      21-Sep-2013 12:08:47 PM
//  Original author: Jakkaphan Aiemcharoenjit
///////////////////////////////////////////////////////////

#include "BackTemplateCommand.h"
#include "CurrentCommand.h"

using namespace UI;
using namespace UI::CMD;

BackTemplateCommand::BackTemplateCommand(CCreateTemplateView* createTemplate, CTemplateView* _template)
{
  this->m_type = ICommand::BACKTEMPLATE_CMD;
  this->m_createTemplateView = createTemplate;
  this->m_templateView = _template;
}


BackTemplateCommand::~BackTemplateCommand()
{

}


void BackTemplateCommand::Execute()
{

  // Set current command
  CurrentCommand::GetInstance()->SetCurrentCommand(this->m_type);
}


ICommand::CommandType BackTemplateCommand::GetType()
{
	return  this->m_type;
}